<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Ajax Form</title>

<script type="text/javascript" src="validate.js"></script>

</head>

<body>
<fieldset>
<legend>Ajax Form</legend>


<form name="form1" id="form1" method="post" action="../php/formvalidation.php?validationtype=php" onSubmit="return validate();">
<table width="500">
	<tr>
		<td width="130">Username </td> 
		<td width="170"><input type="text" name="user" tabindex="1" id="user" class="validate required none usermsg"/></td>
		<td id ="usermsg"  class="rules">Required</td>
	</tr>
 
	<tr>
		<td>Email </td>
		<td><input type="text" name="email" tabindex="2"  id="email" class="validate required email emailmsg" /></td>
		<td id="emailmsg" class="rules">Required</td>
	</tr>	

	<tr>
		<td><input type="submit" name="Submit" value="Submit" tabindex="5" /></td>
	</tr> 
	
</table>

</form>
</fieldset>
</body>


</html>
